<template>

  <div class="password-box">
    <div class="recompose-box">
      <div class="succeed-box">
        <i class="iconfont icon-succeed icon" />
        <span>恭喜您，修改密码成功！</span>
      </div>
      <button class="btn" @click="finish">完成</button>
    </div>
  </div>
</template>

<script>
import { removeToken } from '@/util/auth'
export default {
  data() {
    return {
    }
  },
  mounted() {
    removeToken()
    // 这里还需要一个倒计时
  },
  methods: {
    finish() {
      this.$router.push('/login')
    }
  }
}
</script>

<style lang='scss' scoped >
.password-box{
  width: 100%;
  height: 100%;
  background: #F5F5F5;
  .pass-title{
    height: 67px;
    color: #3D3D3D;
    padding-left:30px;
    line-height: 67px;
    font-size: 16px;
    font-weight: bold;
    background: #ffffff;
    margin-bottom: 20px;
  }
  .recompose-box{
    height: 564px;
    background: #ffffff;
    padding: 23px 0 0 166px;
    .succeed-box{
        width: 536px;
        height: 101px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #F5F5F5;
        margin-top: 70px;
        span{
            color: #8E8E93;
        }
        .icon{
            color: #5FC041;
            margin-right: 16px;
            font-size: 44px;
        }
    }
    .btn{
      margin: 20px 0 0 210px;
      width: 110px;
      height: 37px;
      background: #FF3B30;
      color: #ffffff;
      line-height: 37px;
      text-align: center;
      cursor: pointer;
      border-radius: 3px;
    }
  }
}
</style>
